package org.lgl.common.exception;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.lgl.common.result.CodeMsg;

/**
 * @author lgl
 * @date 2022/2/24 18:26
 */
@Data
@NoArgsConstructor
public class GlobalException extends RuntimeException {
    private CodeMsg codeMsg;

    public GlobalException(CodeMsg codeMsg) {
        super(codeMsg.toString());
        this.codeMsg = codeMsg;
    }

}
